package storage.beans;

public class Region {
  private int longWest;
  private int longEast;
  private int latNorth;
  private int latSouth;
  
  public Region(int longWest, int longEast, int latNorth, int latSouth) {
    this.longEast = longEast;
    this.longWest = longWest;
    this.latNorth = latNorth;
    this.latSouth = latSouth;
  }
  
  public int getArea() {
    int length = longEast + longWest;
    int height = latNorth + latSouth;
    return length * height;
  }

  public int getLongEast() {
    return longEast;
  }

  public void setLongEast(int longEast) {
    this.longEast = longEast;
  }

  public int getLongWest() {
    return longWest;
  }

  public void setLongWest(int longWest) {
    this.longWest = longWest;
  }

  public int getLatNorth() {
    return latNorth;
  }

  public void setLatNorth(int latNorth) {
    this.latNorth = latNorth;
  }

  public int getLatSouth() {
    return latSouth;
  }

  public void setLatSouth(int latSouth) {
    this.latSouth = latSouth;
  }
  
  public String toString() {
    return latNorth + "N " + latSouth + "S " + longEast + "E " + longWest + "W";
  }
  
}
